import { loadUrl } from "@/utils/Utils";
import { Material, MeshBasicMaterial } from "three";

export interface IEditorAssets {
    /** 名字 */
    name: string,
    /** 模型的路径 */
    objUrl: string,
    /** 缩略图的路径 */
    imageUrl: string,
}
/** 资产数据列表里 */
export const assetsList: IEditorAssets[] = [
    {
        name: '椅子',
        objUrl: loadUrl('@/assets/models/yizi.glb'),
        imageUrl: loadUrl('@/assets/models/images/yizi.png')
    },
    {
        name: '桌子',
        objUrl: loadUrl('@/assets/models/zhuozi.glb'),
        imageUrl: loadUrl('@/assets/models/images/zhuozi.png')
    },
]

export interface IEditorDragMaterial {
    /** 材质名称 */
    name: string,
    /** 材质实例 */
    material: Material,
    /** 材质的图片 */
    imageUrl: string,
}

/** 材质数据 */
export const materialList: IEditorDragMaterial[] = [{
    name: '材质蓝',
    material: new MeshBasicMaterial({
        color: 0x0000ff,
    }),
    imageUrl: loadUrl('@/assets/models/material/materialBlue.png')
}, {
    name: '材质红',
    material: new MeshBasicMaterial({
        color: 0xff0000,
    }),
    imageUrl: loadUrl('@/assets/models/material/materialRed.png')
}]


export interface IEditorDragTextureMap {
    /** 贴图名称 */
    name: string,
    /** 贴图图片 */
    textureMapImage: string,
    /** 材质的图片 */
    imageUrl: string,
}

/** 贴图数据 */
export const textureMapList: IEditorDragTextureMap[] = [{
    name: '皮卡去',
    imageUrl: loadUrl('@/assets/models/textureMap/pikaqiu1.jpg'),
    textureMapImage: loadUrl('@/assets/models/textureMap/pikaqiu1.jpg'),
}, {
    name: '卡拉卡拉',
    imageUrl: loadUrl('@/assets/models/textureMap/pikaqiu2.jpg'),
    textureMapImage: loadUrl('@/assets/models/textureMap/pikaqiu2.jpg'),
}]